package loan.calc.constant.dict.rate;

import lombok.AllArgsConstructor;
import lombok.Getter;
import loan.calc.constant.dict.base.BaseDictEnum;
import loan.calc.constant.dict.base.DictEnum;

/**
 * 利率种类
 */
@Getter
@AllArgsConstructor
@DictEnum(value = "RateType", description = "利率种类")
public enum RateTypeEnum implements BaseDictEnum {

    NORMAL_RATE( "普通贷款利率"),
    PRINCIPAL_PENALTY_RATE( "本金罚息利率"),
    INTEREST_PENALTY_RATE( "利息罚息利率"),

    ;

    private final String value;

    private final String description;

    RateTypeEnum(String description) {
        this.value = name();
        this.description = description;
    }


}
